package com.inspur.xiaoju.service;

import com.inspur.xiaoju.dto.CreateWorkspaceDto;
import com.inspur.xiaoju.model.Workspace;

import java.util.List;
import java.util.Map;

public interface WorkspaceService {
    Workspace create(CreateWorkspaceDto createDto, String creatorId, String creator);
    Workspace findById(String id);
    List<Workspace> findByCreatorId(String creatorId);
    Workspace update(String id, Map<String, Object> updates);
    void delete(String id);
}